/*
 * Flowable REST API
 * # flowable / flowəb(ə)l /    - a compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.  - a lightning fast, tried and tested BPMN 2 process engine written in Java. It is Apache 2.0 licensed open source, with a committed community.  - can run embedded in a Java application, or as a service on a server, a cluster, and in the cloud. It integrates perfectly with Spring. With a rich Java and REST API, it is the ideal engine for orchestrating human or system activities.
 *
 * OpenAPI spec version: v1
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.ibm.risk.irmp.workflow.client.flowable.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;

/**
 * HistoricVariableInstanceQueryRequest
 */

public class HistoricVariableInstanceQueryRequest {
  @JsonProperty("excludeTaskVariables")
  private Boolean excludeTaskVariables = null;

  @JsonProperty("taskId")
  private String taskId = null;

  @JsonProperty("executionId")
  private String executionId = null;

  @JsonProperty("processInstanceId")
  private String processInstanceId = null;

  @JsonProperty("variableName")
  private String variableName = null;

  @JsonProperty("variableNameLike")
  private String variableNameLike = null;

  @JsonProperty("variables")
  private List<QueryVariable> variables = null;

  public HistoricVariableInstanceQueryRequest excludeTaskVariables(Boolean excludeTaskVariables) {
    this.excludeTaskVariables = excludeTaskVariables;
    return this;
  }

   /**
   * Get excludeTaskVariables
   * @return excludeTaskVariables
  **/
  @ApiModelProperty(value = "")
  public Boolean getExcludeTaskVariables() {
    return excludeTaskVariables;
  }

  public void setExcludeTaskVariables(Boolean excludeTaskVariables) {
    this.excludeTaskVariables = excludeTaskVariables;
  }

  public HistoricVariableInstanceQueryRequest taskId(String taskId) {
    this.taskId = taskId;
    return this;
  }

   /**
   * Get taskId
   * @return taskId
  **/
  @ApiModelProperty(value = "")
  public String getTaskId() {
    return taskId;
  }

  public void setTaskId(String taskId) {
    this.taskId = taskId;
  }

  public HistoricVariableInstanceQueryRequest executionId(String executionId) {
    this.executionId = executionId;
    return this;
  }

   /**
   * Get executionId
   * @return executionId
  **/
  @ApiModelProperty(value = "")
  public String getExecutionId() {
    return executionId;
  }

  public void setExecutionId(String executionId) {
    this.executionId = executionId;
  }

  public HistoricVariableInstanceQueryRequest processInstanceId(String processInstanceId) {
    this.processInstanceId = processInstanceId;
    return this;
  }

   /**
   * Get processInstanceId
   * @return processInstanceId
  **/
  @ApiModelProperty(value = "")
  public String getProcessInstanceId() {
    return processInstanceId;
  }

  public void setProcessInstanceId(String processInstanceId) {
    this.processInstanceId = processInstanceId;
  }

  public HistoricVariableInstanceQueryRequest variableName(String variableName) {
    this.variableName = variableName;
    return this;
  }

   /**
   * Get variableName
   * @return variableName
  **/
  @ApiModelProperty(value = "")
  public String getVariableName() {
    return variableName;
  }

  public void setVariableName(String variableName) {
    this.variableName = variableName;
  }

  public HistoricVariableInstanceQueryRequest variableNameLike(String variableNameLike) {
    this.variableNameLike = variableNameLike;
    return this;
  }

   /**
   * Get variableNameLike
   * @return variableNameLike
  **/
  @ApiModelProperty(value = "")
  public String getVariableNameLike() {
    return variableNameLike;
  }

  public void setVariableNameLike(String variableNameLike) {
    this.variableNameLike = variableNameLike;
  }

  public HistoricVariableInstanceQueryRequest variables(List<QueryVariable> variables) {
    this.variables = variables;
    return this;
  }

  public HistoricVariableInstanceQueryRequest addVariablesItem(QueryVariable variablesItem) {
    if (this.variables == null) {
      this.variables = new ArrayList<QueryVariable>();
    }
    this.variables.add(variablesItem);
    return this;
  }

   /**
   * Get variables
   * @return variables
  **/
  @ApiModelProperty(value = "")
  public List<QueryVariable> getVariables() {
    return variables;
  }

  public void setVariables(List<QueryVariable> variables) {
    this.variables = variables;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    HistoricVariableInstanceQueryRequest historicVariableInstanceQueryRequest = (HistoricVariableInstanceQueryRequest) o;
    return Objects.equals(this.excludeTaskVariables, historicVariableInstanceQueryRequest.excludeTaskVariables) &&
        Objects.equals(this.taskId, historicVariableInstanceQueryRequest.taskId) &&
        Objects.equals(this.executionId, historicVariableInstanceQueryRequest.executionId) &&
        Objects.equals(this.processInstanceId, historicVariableInstanceQueryRequest.processInstanceId) &&
        Objects.equals(this.variableName, historicVariableInstanceQueryRequest.variableName) &&
        Objects.equals(this.variableNameLike, historicVariableInstanceQueryRequest.variableNameLike) &&
        Objects.equals(this.variables, historicVariableInstanceQueryRequest.variables);
  }

  @Override
  public int hashCode() {
    return Objects.hash(excludeTaskVariables, taskId, executionId, processInstanceId, variableName, variableNameLike, variables);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class HistoricVariableInstanceQueryRequest {\n");

    sb.append("    excludeTaskVariables: ").append(toIndentedString(excludeTaskVariables)).append("\n");
    sb.append("    taskId: ").append(toIndentedString(taskId)).append("\n");
    sb.append("    executionId: ").append(toIndentedString(executionId)).append("\n");
    sb.append("    processInstanceId: ").append(toIndentedString(processInstanceId)).append("\n");
    sb.append("    variableName: ").append(toIndentedString(variableName)).append("\n");
    sb.append("    variableNameLike: ").append(toIndentedString(variableNameLike)).append("\n");
    sb.append("    variables: ").append(toIndentedString(variables)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
